<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>文件上传</title>
    <link rel="stylesheet" type="text/css" href="./css/upload.css">
</head>
<body>
    <button class="layui-upload">点击上传</button>
    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.js"></script>
    <script src="./js/upload.js"></script>
    <script>
        var upload = new Upload({
            element: 'layui-upload',
            url: 'http://localhost:8080/'
        });
        upload.Upload();
    </script>
</body>
</html>